package com.et.easy.demo.perf4j;

import org.perf4j.LoggingStopWatch;
import org.perf4j.StopWatch;

/**
 * <p>性能测试监控
 * java -jar perf4j-0.9.12.jar times.log 输出统计日志
 * </p>
 * @author defier Lai
 * <p>Date: 2009-11-1 下午01:53:56</p>
 * @version 1.0
 */
public class Perf4jDemo {

	public static void main(String[] args) throws InterruptedException {
		StopWatch stopWatch = new LoggingStopWatch("test codeblock one");
		
		Thread.sleep((long)(Math.random() * 1000L));
		stopWatch.stop();
	}
	
}
